Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from open-telemetry:main #47

Open
wants to merge 1,000 commits into
base: main
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 18, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Oct 18, 2024
@codeboten codeboten requested a review from cparkins as a code owner October 18, 2024 18:41
axw and others added 28 commits January 16, 2025 15:48
#### Description

Remove the Elasticsearch exporter's `dedup` config. This config setting
has been deprecated for 6 months and can be safely removed now.

#### Link to tracking issue

Follow up to
#33773

#### Testing

N/A. The config was already a no-op, this just removes the config
setting.

#### Documentation

Removed mention of the config from README.
#### Description

The Config struct has a Validate method but it is only used in tests.
Ensure we validate the configuration when creating the processor.
…37189)

Currently, a "not sampled" decision for a trace is only cached when late
spans arrive for it. Whereas a "sampled" decision for a trace is
immediately cached. This pull request immediately caches "not sampled"
decisions, late spans (or reprocessed spans) for "not sampled" traces
now take fewer resources to process.

Currently, traces are stored in memory until `num_traces` is reached,
then the oldest is deleted to make room. This is a clever mechanism to
limit the size* of the internal map, however, trace span counts and
their contents likely vary considerably. This pull request doesn't touch
this mechanism, but it does delete traces from the internal map after
they are released and are added to a decision cache.

---------

Signed-off-by: Sean Porter <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
#### Description

Fix spelling in exporter/

#37128 (review)

#### Link to tracking issue

* #37128

---------

Signed-off-by: Josh Soref <[email protected]>
#### Description

Fix flaky TestExporterLogs test

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #37286

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
#### Description

This MR does the following:

* Re adds the ability to allow multiple workers in this exporter due to:

1. Out of Order is no longer an issue now that it is fully supported in
Prometheus. Nonetheless, I am setting the default worker as 1 to avoid
OoO in Vanilla Prometheus Settings.

2. With a single worker, and for a collector with a large load, this
becomes "blocking". Example: Imagine a scenario in which a collector is
collecting lots of targets, and with a slow prometheus/unstable network,
a single worker can easily bottleneck the off-shipping if retries are
enabled.

#### Link to tracking issue
N/A

#### Testing  ####

#### Documentation
docs auto-updated. Readme.md is now correct in its explanation of the
`num_consumers since its no longer hard-coded at 1. Additional docs
added.
#36419)

…e name logic

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Datadog associates two name fields with each span: "resource name" and
"operation name." Resource name is analogous to `span.name` in OTel, but
operation name has no 1:1 correspondence with any OTel fields. (Read
more about what operation name respresents here:
https://docs.datadoghq.com/tracing/guide/configuring-primary-operation/)

Previously, the datadog exporter [would compute operation name as
`{scope name}.{span
kind}`](https://github.com/DataDog/datadog-agent/blob/8b92185df483f39456c41766b5666a2bd22307e6/pkg/trace/traceutil/otel_util.go#L367).
This would result in long, difficult to read operation names in the
Datadog UI - [a prior discussion on this issue can be found
here](#1909).

In this PR, add a feature gate
`datadog.EnableOperationAndResourceNameV2`. This gate enables new logic
for operation and resource name that improves readability of these
fields by producing shorter names and better aligning with the OTel
spec.

The names computed in the new logic follow those computed in
[dd-trace-go](https://github.com/DataDog/dd-trace-go).

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Unit tests and E2E tests for the new logic are done in the
`datadog-agent` repo. Added a test in this repo that verifies that
setting the feature gate enables the new logic; also ran the collector
with the feature flag and verified new logic manually.

<!--Describe the documentation added.-->
#### Documentation

Changelog added

<!--Please delete paragraphs that you did not use before submitting.-->
Proposing to take the position of codeowner of jmxreceiver. Moving this
component out of unmaintained status.
…ols (#37295)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Deprecates githubgen in favor of the new location of this code under
opentelemetry-go-build-tools

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Related to #37294
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
`githubgen` was adding trailing whitespaces to unmaintained components
that was unnecessary. This removes the trailing whitespaces.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #37292
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Implements the common queueing feature into the `awss3exporter`, as
suggested
[here](#36264).
…37298)

Doing in place expansion leads to hitting bash line size limits, this is
a cheap improvement that makes less likely to hit cases like #37287.

Tests on my fork
https://github.com/pjanotti/opentelemetry-service-contrib/actions/runs/12836050460/job/35796880868
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR adds the vcenter.vm.memory.granted and vcenter.host.cpu.capacity
metric.
More information on this metric can be found
[here](https://docs.vmware.com/en/vRealize-Operations/8.10/com.vmware.vcom.metrics.doc/GUID-41603CD6-453B-4E26-A237-34E733BAB00C.html).

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#37257 


<!--Describe what testing was performed and which tests were added.-->
#### Testing
The metric was scraped from a test vCenter environment, and golden test
files were updated to reflect the addition of the metric.


<!--Describe the documentation added.-->
#### Documentation
Documentation was updated according to the metadata.yaml


<!--Please delete paragraphs that you did not use before submitting.-->

<img width="959" alt="Screenshot 2025-01-14 at 10 48 02 AM"
src="https://github.com/user-attachments/assets/7c88902f-fe21-4c7d-be17-ba79a92222f3"
/>

<img width="919" alt="Screenshot 2025-01-15 at 11 35 31 AM"
src="https://github.com/user-attachments/assets/77e19e19-93e4-410a-b501-6477c77e78da"
/>

Co-authored-by: Antoine Toulme <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The use and/or administration of geolocation databases might involve
compiling with vendors licensing, this PR adds some words into the
`geoIP` processor as a reminder.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
```
internal/common/ttlmap/ttl_map.go:12:13: struct with 24 pointer bytes could be 16
internal/common/ttlmap/ttl_map.go:68:12: struct with 24 pointer bytes could be 16
```
It doesn't appear disabling this linter is necessary anymore.
This comment says that the rule exclusions are only applying to test
files, but that doesn't appear to be the case as no selection is made
over file types. I offer to delete that comment as outdated.
#### Description
Fixes goroutines leak by properly closing the underlying gRPC client
which is only when we're using an insecure custom endpoint.
Enables shutdown tests.

#### Link to tracking issue
Related to
#30438

Co-authored-by: Kevin N. <[email protected]>
Signed-off-by: Antoine Toulme <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
This is the same as was done in core in
open-telemetry/opentelemetry-collector#12134

Signed-off-by: Alex Boten <[email protected]>
mx-psi and others added 30 commits February 5, 2025 18:59
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
Allowlists fuzzing targets
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
An immediate fix for `make oteltestbedcol`. cc @mx-psi 

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
#37627

<!--Describe what testing was performed and which tests were added.-->
#### Testing
n/a

<!--Describe the documentation added.-->
#### Documentation
n/a

<!--Please delete paragraphs that you did not use before submitting.-->
… in readme (#37696)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

The Kafka receiver's readme is incorrect. TLS `insecure` should be
`insecure_skip_verify`.

See the following source code
-
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/internal/kafka/authentication.go#L24
-
https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/configtls.go#L100
…37489)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR adds the following VM performance metrics for vcenter.

1. `vcenter.vm.cpu.time`
2. `vcenter.vm.network.multicast.packet.rate`
3. `vcenter.vm.network.broadcast.packet.rate`

More information on these metrics can be found
[here](https://docs.vmware.com/en/vRealize-Operations/8.10/com.vmware.vcom.metrics.doc/GUID-41603CD6-453B-4E26-A237-34E733BAB00C.html).
and also succinctly described
[here](https://www.servicenow.com/docs/bundle/xanadu-it-operations-management/page/product/agent-client-collector/reference/vsphere-metrics.html)

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#37488 


<!--Describe what testing was performed and which tests were added.-->
#### Testing
The metrics were scraped from a test vCenter environment, and golden
test files were updated accordingly to reflect the addition of the
metric.


<!--Describe the documentation added.-->
#### Documentation
Documentation was updated according to the metadata.yaml
<img width="1776" alt="evidence1"
src="https://github.com/user-attachments/assets/662d6ff5-dda5-4e56-b124-5b401992871a"
/>
<img width="650" alt="Screenshot 2025-01-29 at 10 48 33 AM"
src="https://github.com/user-attachments/assets/c421ed17-d718-4f78-b5d1-4b96627d7584"
/>
<img width="125" alt="Screenshot 2025-01-29 at 10 53 54 AM"
src="https://github.com/user-attachments/assets/12317bf0-d767-4d6d-ad2f-0daf07c18555"
/>
<img width="933" alt="Screenshot 2025-01-29 at 10 54 11 AM"
src="https://github.com/user-attachments/assets/331a31fb-0574-4465-8fc5-240be40e2684"
/>

Signed-off-by: Samiur Arif <[email protected]>
#### Description

This PR addresses #36984 in order to open up telemetrygen to be used by
golang tests and generate varying amounts of telemetry in code to
support use cases which don't rely on external tools.

The following major changes were made to clear the footprint for how
this API can be used:

1. Moved `metrics`, `traces`, and `logs` under `pkg` instead of
internal.
2. Unexported the `run` function for each test suite so the entrypoint
is only the `Start` function
3. Moved config defaults from pflags into a `SetDefaults` function which
is exported alongside `NewConfig`
for changed packages in order for users to get the same sane defaults as
if run from the command line.
4. Adjusted the pflags to use the existing default values rather than
duplicate their own removing default config duplication
5. Added E2E tests for Metrics and Logs and adjusted Traces to use the
new API so it stays consistent.
6. Adjusted log and metric exporter instantiation slightly due to a race
condition with an `err` variable which was only caught by the new E2E
tests.

#### Testing

Added to the E2E tests to ensure consistent API specs.
Add code coverage of pod.container rule type.
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds fuzz tests for receiver handlers and processing of metrics, logs
and traces. For receivers, the fuzz test will create an HTTP request
with the fuzzers testcase as its body. For processors, the fuzzer will
create random logs, metrics or traces and pass it to a routine that
processes the data - for the most part either a
`processLogs`/`processMetrics`/`processTraces` method or
`ConsumeLogs`/`ConsumeTraces` which will then invoke the internal
`process` routine.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: Adam Korczynski <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
…ied paths and error mode overrides (#37676)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR is part of
#29017,
and a split from
#36888.
It changes the `transformprocessor`, adding support for error mode
overrides per context statements group, and global `conditions` with
fully qualified paths for context-inferred configuration styles.

Change log:
- Structured context-inferred configuration styles (without `context:
<value>`) now supports and requires conditions with fully qualified
paths, for example:
  
    ```yaml
   log_statements:
      - statements:
          - set(log.attributes["pass"], "true")
        conditions:
          - log.attributes["pass"] == nil
    
  ```
If non qualified paths are used, it raises an error, for example `-
attributes["pass"] == nil` would generate the following error:
  
  ```
invalid config for "transform" processor unable to parse OTTL condition
"attributes[\"pass\"] == nil": missing context name for path
"attributes[pass]", possibly valid options are: "log.attributes[pass]",
"instrumentation_scope.attributes[pass]", "resource.attributes[pass]"
  ``` 
Existing non-context inferred configurations shouldn't be impacted by
this change.

- A new configuration `error_mode` key has been added to the context
statements group (`common.ContextStatements`),
When provided, it overrides the top-level error mode, offering more
granular control over error handling, for example:

     ```yaml
      error_mode: propagate
      log_statements:
        - context: log
          error_mode: ignore
          statements: 
            - set(attributes["attr1"], ParseJSON(1))
        - context: log
          statements:
            - set(attributes["executed"], true)
    ```

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

#29017

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Unit tests

<!--Describe the documentation added.-->
#### Documentation
Changed the README to include the new configuration key `error_mode`

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Co-authored-by: Evan Bradley <[email protected]>
#### Description

This is a second attempt at PR #37142, see that one for context.

The PR was reverted in #37173, because the result of `make tidylist` was
not a pure function of the repo state. The output of the tool depends on
all `go.mod` files present in the repo directory, including those that
may be `.gitignored`, such as the ones generated in `cmd/otelcontribcol`
and `cmd/oteltestbedcol`.

Since then, I [added a `--skip` flag to the
tool](open-telemetry/opentelemetry-go-build-tools#662),
which allows us to make the tool ignore these problematic `go.mod`
files.

Automatic detection of `.gitignored` files may be desirable if some
developers have other non-gitted Go modules inside their repo directory.
As this would require more advanced Git integration in the tool and
should be easily avoided, I've decided to keep this more manual
approach.

#### Link to tracking issue

Resolves #37336.

See previous PR for impacted issues in core.

#### Testing

See previous PR for initial testing.

I've tried running the tool locally, with and without the generated
files in `cmd/otelcontribcol`, and the output was identical, confirming
that the previous issue should be fixed.

---------

Co-authored-by: Pablo Baeyens <[email protected]>
…ne exits (#37733)

#### Description

When WAL is used the shutdown doesn't wait until the go routine launched
to handle WAL terminates. This makes the shutdown non-deterministic and
cause the test failure issues linked below.

Although a bug on the component it doesn't seem to deserve a changelog
since it was detected via tests and there is no open issue around the
shutdown of the component.

#### Link to tracking issue

Fixes #9124, #37715

#### Testing

Ran the component tests locally multiple times on Windows (more likely
to surface concurrency issues).

#### Documentation

N/A
…names (#37741)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR adaps the `e2e` tests to run both the old syntax as it's, and
the new one by leveraging the parser collection context prepend feature,
giving us some extra coverage without having to duplicate every single
test.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

#29017

<!--Please delete paragraphs that you did not use before submitting.-->
#### Description
[Vulnerability
scans](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13184143287/job/36802088446?pr=37749)
are detecting [GO-2025-3447](https://pkg.go.dev/vuln/GO-2025-3447) in
our runs. This upgrades the test environment to run 1.22.12, the fixed
version.
This PR updates the go-build-tools to the latest v0.18.0 version and
adjusts to the breaking changes for the githubgen tool.

[Link to the go-build-tools
changelog](https://github.com/open-telemetry/opentelemetry-go-build-tools/blob/main/CHANGELOG.md#v0180)

---------

Signed-off-by: Moritz Wiesinger <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

One option to help with
open-telemetry/opentelemetry-collector#12311.

We could also fix this after making that change, but I think the checks
now better reflect the intent of the test.
OnConnectionClose was never hooked up to the server's OnConnectionClose,
causing the restart of the agent to never be able to reconnect.

---------

Signed-off-by: Alex Boten <[email protected]>
Before (including copy of the bytes needed upstream):
```
goos: darwin
goarch: arm64
pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/fileconsumer/internal/reader
cpu: Apple M2 Max
BenchmarkFileRead
BenchmarkFileRead-12    	    6890	    159408 ns/op	  125802 B/op	     132 allocs/op
PASS
```

After
```
goos: darwin
goarch: arm64
pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/fileconsumer/internal/reader
cpu: Apple M2 Max
BenchmarkFileRead
BenchmarkFileRead-12    	    7662	    154923 ns/op	  121656 B/op	     130 allocs/op
PASS
```

Signed-off-by: Bogdan Drutu <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Improvements to integration test:
1. Reduced test execution time by changing the behavior from starting
and shutting down the database container for each test case to starting
the container **once** and then running all tests for the given engine.
Gain ~22s:

[Main
job](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13077774968/job/36494091929):
 ```
DONE 47 tests, 8 skipped in 136.005s
```
[PR job](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13077857640/job/36494335331?pr=37624)
```
DONE 44 tests, 4 skipped in 114.374s
```  

2. Updated the Oracle container from [gvenzl/oracle-xe:21-slim-faststart](https://hub.docker.com/r/gvenzl/oracle-xe) to [gvenzl/oracle-free:slim-faststart](https://hub.docker.com/r/gvenzl/oracle-free), primarily to support ARM architecture.


<!--Describe what testing was performed and which tests were added.-->
#### Testing
* Ran tests for Oracle and SQL Server locally to ensure they are not broken.

Co-authored-by: Curtis Robert <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR fixed `make update-otel` to update `builder-config.yaml`
correctly. This is the workflow we update `builder-config.yaml` files:
1. `MULTIMOD` command to update `go.mod`
2. `updatehelper` function to update `builder-config.yaml` according to
the updated `go.mod`

However, `make otelcontribcol/make oteltestbedcol` will overwrite the
updated `go.mod` unexpectedly before step 2.
This PR removes the unexpected `make otelcontribcol/make oteltestbedcol`
commands.

cc @mx-psi 
<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
n/a

<!--Describe what testing was performed and which tests were added.-->
#### Testing
n/a

<!--Describe the documentation added.-->
#### Documentation
n/a

<!--Please delete paragraphs that you did not use before submitting.-->
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Proposing myself as a maintainer of this code. 
My membership has been sponsored on that purpose by @atoulme and @mx-psi
open-telemetry/community#2508

ping also the current code owner @nslaughter

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #37713

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Signed-off-by: Célian Garcia <[email protected]>
Co-authored-by: Curtis Robert <[email protected]>
#37749)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
As component sponsor, @MovieStoreGuy [should be included as a code
owner](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#adding-new-components).
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/jaegertracing/jaeger](https://redirect.github.com/jaegertracing/jaeger)
| `v1.65.0` -> `v1.66.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fjaegertracing%2fjaeger/v1.66.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fjaegertracing%2fjaeger/v1.66.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fjaegertracing%2fjaeger/v1.65.0/v1.66.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fjaegertracing%2fjaeger/v1.65.0/v1.66.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>jaegertracing/jaeger
(github.com/jaegertracing/jaeger)</summary>

###
[`v1.66.0`](https://redirect.github.com/jaegertracing/jaeger/blob/HEAD/CHANGELOG.md#v1660--v230-2025-02-03)

[Compare
Source](https://redirect.github.com/jaegertracing/jaeger/compare/v1.65.0...v1.66.0)

##### ⛔ Breaking Changes

- \[refactor] remove archive reader and writer from remote storage grpc
handler
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6611](https://redirect.github.com/jaegertracing/jaeger/pull/6611))
- Delete grpc metricsqueryservice, metricsquery.proto and related code
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6616](https://redirect.github.com/jaegertracing/jaeger/pull/6616))
- \[storage] remove distinction between primary and `archive` storage
interfaces
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6567](https://redirect.github.com/jaegertracing/jaeger/pull/6567))
- \[v2]\[query] create archive reader/writer using regular factory
methods
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6519](https://redirect.github.com/jaegertracing/jaeger/pull/6519))

##### 🐞 Bug fixes, Minor Improvements

- \[fix] replace deprecated address field in service::telemetry
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6679](https://redirect.github.com/jaegertracing/jaeger/pull/6679))
- \[fix] change metrics port in kafka ingester config to avoid conflict
with collector
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6678](https://redirect.github.com/jaegertracing/jaeger/pull/6678))
- Update elasticsearch article link
([@&#8203;timyip3](https://redirect.github.com/timyip3) in
[#&#8203;6662](https://redirect.github.com/jaegertracing/jaeger/pull/6662))
- \[chore] move scylladb implementation to `docker-compose`
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6652](https://redirect.github.com/jaegertracing/jaeger/pull/6652))
- \[fix] refactor archive storage initialization and remove error log
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6636](https://redirect.github.com/jaegertracing/jaeger/pull/6636))
- Update import paths for jaeger thrift files to use jaeger-idl
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6635](https://redirect.github.com/jaegertracing/jaeger/pull/6635))
- \[v2]\[query] apply "max clock skew adjust" setting
([@&#8203;dnaka91](https://redirect.github.com/dnaka91) in
[#&#8203;6566](https://redirect.github.com/jaegertracing/jaeger/pull/6566))
- Alias samping.thrift and clean thrift files
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6630](https://redirect.github.com/jaegertracing/jaeger/pull/6630))
- Fix(hotrod): include ca certificates for hotrod dockerfile
([@&#8203;prashant-shahi](https://redirect.github.com/prashant-shahi) in
[#&#8203;6627](https://redirect.github.com/jaegertracing/jaeger/pull/6627))
- Replace all imports of jaeger/thrift-gen/\* with
jaeger-idl/thrift-gen/\*
([@&#8203;danish9039](https://redirect.github.com/danish9039) in
[#&#8203;6621](https://redirect.github.com/jaegertracing/jaeger/pull/6621))
- Redefine thrift-gen types as aliases to jaeger-idl
([@&#8203;danish9039](https://redirect.github.com/danish9039) in
[#&#8203;6619](https://redirect.github.com/jaegertracing/jaeger/pull/6619))
- Add 'features' command to print available feature gates
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;6542](https://redirect.github.com/jaegertracing/jaeger/pull/6542))
- Replace jaeger_image_tag with jaeger_version
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;6614](https://redirect.github.com/jaegertracing/jaeger/pull/6614))
- Use jeager-idl/proto-gen/api_v2
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6609](https://redirect.github.com/jaegertracing/jaeger/pull/6609))
- Additional model/ cleanup
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6610](https://redirect.github.com/jaegertracing/jaeger/pull/6610))
- Return 400 instead of 500 on incorrect otlp payload
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;6599](https://redirect.github.com/jaegertracing/jaeger/pull/6599))
- Replace model imports with jaeger-idl
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6595](https://redirect.github.com/jaegertracing/jaeger/pull/6595))
- Redefine model/ and api_v2/ types as aliases to jaeger-idl/ types
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6602](https://redirect.github.com/jaegertracing/jaeger/pull/6602))
- Add example of es/os server_urls to configs
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6601](https://redirect.github.com/jaegertracing/jaeger/pull/6601))
- Sanitize cassandra version before use it
([@&#8203;rubenvp8510](https://redirect.github.com/rubenvp8510) in
[#&#8203;6596](https://redirect.github.com/jaegertracing/jaeger/pull/6596))
- Feat: add esmapping-generator into jaeger binary
([@&#8203;Rohanraj123](https://redirect.github.com/Rohanraj123) in
[#&#8203;6327](https://redirect.github.com/jaegertracing/jaeger/pull/6327))
- Add replication parameter to cassandra schema script
([@&#8203;asimchoudhary](https://redirect.github.com/asimchoudhary) in
[#&#8203;6582](https://redirect.github.com/jaegertracing/jaeger/pull/6582))
- Exclude idl/ as a source of go code
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6591](https://redirect.github.com/jaegertracing/jaeger/pull/6591))
- Change model.tootelxxxid() to accept id argument
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6589](https://redirect.github.com/jaegertracing/jaeger/pull/6589))
- \[refactor]\[storage]\[badger]refactored the prefilling of cache to
reader ([@&#8203;Manik2708](https://redirect.github.com/Manik2708) in
[#&#8203;6575](https://redirect.github.com/jaegertracing/jaeger/pull/6575))
- Move span.getsamplerparams out of model/ into sampling/aggregator
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6583](https://redirect.github.com/jaegertracing/jaeger/pull/6583))
- Remove logger parameter in adaptive/aggregator.go
([@&#8203;Nabil-Salah](https://redirect.github.com/Nabil-Salah) in
[#&#8203;6586](https://redirect.github.com/jaegertracing/jaeger/pull/6586))
- Separate model parts into more independent pieces
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6581](https://redirect.github.com/jaegertracing/jaeger/pull/6581))
- \[storage]generate mocks for dependency writer of v2
([@&#8203;Manik2708](https://redirect.github.com/Manik2708) in
[#&#8203;6576](https://redirect.github.com/jaegertracing/jaeger/pull/6576))
- \[chore] remove unused method from grpc handler
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6580](https://redirect.github.com/jaegertracing/jaeger/pull/6580))
- Document usage of feature gates for breaking changes
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6568](https://redirect.github.com/jaegertracing/jaeger/pull/6568))
- \[refactor] move sampling strategy providers to
internal/sampling/samplingstrategy
([@&#8203;ary82](https://redirect.github.com/ary82) in
[#&#8203;6561](https://redirect.github.com/jaegertracing/jaeger/pull/6561))
- \[v2]\[storage] implement reverse adapter to translate v2 writer to v1
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6555](https://redirect.github.com/jaegertracing/jaeger/pull/6555))
- \[refactor] move sampling strategy interfaces to
internal/sampling/strategy
([@&#8203;ary82](https://redirect.github.com/ary82) in
[#&#8203;6547](https://redirect.github.com/jaegertracing/jaeger/pull/6547))
- Switch v1 receivers to use v2 write path
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6532](https://redirect.github.com/jaegertracing/jaeger/pull/6532))
- \[refactor] move plugin/sampling/leaderelection to
internal/leaderelection
([@&#8203;ary82](https://redirect.github.com/ary82) in
[#&#8203;6546](https://redirect.github.com/jaegertracing/jaeger/pull/6546))
- \[refactor] move sampling http handler to internal/sampling/http
([@&#8203;ary82](https://redirect.github.com/ary82) in
[#&#8203;6545](https://redirect.github.com/jaegertracing/jaeger/pull/6545))
- \[storage] remove dependency on archive flag in es reader
([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1) in
[#&#8203;6490](https://redirect.github.com/jaegertracing/jaeger/pull/6490))
- \[refactor] move sampling grpc handler to internal/sampling/grpc
([@&#8203;ary82](https://redirect.github.com/ary82) in
[#&#8203;6540](https://redirect.github.com/jaegertracing/jaeger/pull/6540))
- Correct references in cmd readme.md
([@&#8203;jyoungs](https://redirect.github.com/jyoungs) in
[#&#8203;6539](https://redirect.github.com/jaegertracing/jaeger/pull/6539))
- Use jaeger-v2 by default in hotrod and monitor examples
([@&#8203;zzzk1](https://redirect.github.com/zzzk1) in
[#&#8203;6523](https://redirect.github.com/jaegertracing/jaeger/pull/6523))
- Pass context through span processors
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6534](https://redirect.github.com/jaegertracing/jaeger/pull/6534))

##### 👷 CI Improvements

- Upgrade storage integration test: use v2 archive readerwriter
([@&#8203;ekefan](https://redirect.github.com/ekefan) in
[#&#8203;6489](https://redirect.github.com/jaegertracing/jaeger/pull/6489))
- \[chore]\[tests] clean up integration tests to remove archive reader /
writer ([@&#8203;mahadzaryab1](https://redirect.github.com/mahadzaryab1)
in
[#&#8203;6625](https://redirect.github.com/jaegertracing/jaeger/pull/6625))
- Bump jaeger-idl
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;6569](https://redirect.github.com/jaegertracing/jaeger/pull/6569))
- \[storage]upgraded integration tests to use dependency writer of
storage_v2 ([@&#8203;Manik2708](https://redirect.github.com/Manik2708)
in
[#&#8203;6559](https://redirect.github.com/jaegertracing/jaeger/pull/6559))
- \[ci] fix binary-size-check workflow
([@&#8203;chahatsagarmain](https://redirect.github.com/chahatsagarmain)
in
[#&#8203;6552](https://redirect.github.com/jaegertracing/jaeger/pull/6552))
- \[ci] scrape and verify metrics at the end of e2e tests
([@&#8203;chahatsagarmain](https://redirect.github.com/chahatsagarmain)
in
[#&#8203;6330](https://redirect.github.com/jaegertracing/jaeger/pull/6330))
- \[ci] add workflow to guard against increases in the binary size
([@&#8203;chahatsagarmain](https://redirect.github.com/chahatsagarmain)
in
[#&#8203;6529](https://redirect.github.com/jaegertracing/jaeger/pull/6529))

##### 📊 UI Changes

##### 🐞 Bug fixes, Minor Improvements

- Remove defaultprops from minimap.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2615](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2615))
- Remove defaultprops from scatterplot.jsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2618](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2618))
- Migrate empasizednode from class based to function based component
([@&#8203;AdiIsHappy](https://redirect.github.com/AdiIsHappy) in
[#&#8203;2638](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2638))
- Remove defaultprops from accordiantext.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2612](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2612))
- Remove defaultprops from ticks.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2617](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2617))
- Remove defaultprops from timelinerow.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2616](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2616))
- Remove defaultprops from traceheader.jsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2620](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2620))
- Remove defaultprops from accordianlogs.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2613](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2613))
- Remove defaultprops fromt breakabletext.tsx
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2611](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2611))
- Remove defaultprops from errormessage & newwindowicon
([@&#8203;ADI-ROXX](https://redirect.github.com/ADI-ROXX) in
[#&#8203;2609](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2609))
- \[loadingindicator]: replace defaultprops with destructuring
([@&#8203;its-me-abhishek](https://redirect.github.com/its-me-abhishek)
in
[#&#8203;2601](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2601))
- \[fix]: disable submit button on invalid minduration or maxduration
([@&#8203;hari45678](https://redirect.github.com/hari45678) in
[#&#8203;2600](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2600))
- \[deps]: remove dependency on redux-form
([@&#8203;hari45678](https://redirect.github.com/hari45678) in
[#&#8203;2593](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2593))
- \[fix]: remove redux-form dependency from sort selector
([@&#8203;hari45678](https://redirect.github.com/hari45678) in
[#&#8203;2569](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2569))
- \[revert]: revert redux and react-redux dependency upgrades
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2577](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2577))
- Fix: deep clone trace data for consistency
([@&#8203;Zen-cronic](https://redirect.github.com/Zen-cronic) in
[#&#8203;2571](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2571))
- \[fix]: remove redux-form dependency from monitor page
([@&#8203;hari45678](https://redirect.github.com/hari45678) in
[#&#8203;2562](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2562))
- Fix tracediff graph pan and zoom issue
([@&#8203;anshgoyalevil](https://redirect.github.com/anshgoyalevil) in
[#&#8203;2566](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2566))

##### 👷 CI Improvements

- Remove unused matrix from codeql workflow
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2635](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2635))
- Rename dco->dco check
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2633](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2633))
- Add fake dco check for merge queue events
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2632](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2632))
- Don't run label check in merge queue
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2631](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2631))
- Don't run codeql from merge queue
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2630](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2630))
- Enable workflows to run in merge queue
([@&#8203;yurishkuro](https://redirect.github.com/yurishkuro) in
[#&#8203;2629](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2629))
- \[ci] fix cache resolution and syntax in check binary size workflow
([@&#8203;chahatsagarmain](https://redirect.github.com/chahatsagarmain)
in
[#&#8203;2591](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2591))
- \[ci]: add workflow to guard against growing bundle size
([@&#8203;hari45678](https://redirect.github.com/hari45678) in
[#&#8203;2586](https://redirect.github.com/jaegertracing/jaeger-ui/pull/2586))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Yuri Shkuro <[email protected]>
Co-authored-by: Tyler Helmuth <[email protected]>
#### Description
Removes the previous assert.Equal statement that was causing the test to
intermittently fail. The equal assertion was intended to be removed
previously with the new logic but I missed it.

Will keep an eye on this because I'm surprised I couldn't get it to
happen locally (whereas before adding the new logic I could consistently
get it to fail 2% of the time.)

#### Link to tracking issue
Fixes #34983
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR adds a new gauge metric `datadog.otel.gateway`. This metric is
set at `1` when the collector is used as a gateway otherwise, the value
is `0`.
If `datadog.host.name` was sent with two different values, then the
collector is used as a gateway.

Note: [The PR on
opentelemetry-mapping-go](DataDog/opentelemetry-mapping-go#479)
should be merged before this PR and `go.mod` must use a commit on main
instead of `0.24.1-0.20250124131402-bcd6fd1617a6`

Associated PRs:
- DataDog/opentelemetry-mapping-go#479
- DataDog/datadog-agent#33370
<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing
The following commands generates the metric `datadog.otel.gateway` at
`1`
```
telemetrygen metrics --otlp-insecure   --otlp-attributes "datadog.host.name"=\"host1\"
telemetrygen metrics --otlp-insecure   --otlp-attributes "datadog.host.name"=\"host2\"
```

Same tests were performed for `traces` and for `logs` when
`isLogsAgentExporterEnabled` is false.


<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Co-authored-by: Yang Song <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This bash script precedes githubgen. It is now outdated and can be
removed in favor of githubgen moving forward.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #37757
…authextension (#37334)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds an expiry_buffer config to the oauth2client extension, allowing
token refresh before expiration. The default buffer is set to 5 m,
preventing authentication failures due to token expiration.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

Fixes #35148 

<!--Describe what testing was performed and which tests were added.-->
#### Testing

passes tests.

<!--Describe the documentation added.-->
#### Documentation

The README has been updated to include the expiry_buffer config option,
with instructions on how to use it and its default value.

<!--Please delete paragraphs that you did not use before submitting.-->
…` for the `numeric_attribute` (#37328)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR makes the `numeric_attribute` more flexible and allows to set
only `min_value` or `max_value`, without the need to set both. This is
useful to have simple configurations like these:

```
{
  type: numeric_attribute,
  numeric_attribute: {
    key: http.status_code,
    min_value: 400
  }
}
```

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue

N/A

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Added unit tests to cover all changes and scenarios.

<!--Describe the documentation added.-->
#### Documentation

I fixed an example on the documentation to have just the `min_value` set
<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.